package cn.walls1717.mall.config;


import cn.walls1717.mall.common.config.BaseSwaggerConfig;
import cn.walls1717.mall.common.domain.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Swagger API文档相关配置
 * @author walls1717
 * @since 2022-4-9
 */
@Configuration
@EnableSwagger2
public class SwaggerConfig extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("cn.walls1717.mall.modules")
                .title("walls1717商城后台管理")
                .description("walls1717商城后台管理接口文档")
                .contactName("walls1717")
                .version("1.0")
                .enableSecurity(false)
                .build();
    }
}
